﻿using System;
using System.IO;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using XamlTorrent.Properties;
using XamlTorrent.Utilities;
using Uniloader.Managers;

namespace XamlTorrent
{
    /// <summary>
    /// Interaction logic for WindowMain.xaml
    /// </summary>
    public partial class WindowMain : Window
    {
        public WindowMain()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
        }

        private void Window_Closed(object sender, EventArgs e)
        {
        }

        private void btnSettings_Click(object sender, RoutedEventArgs e)
        {
            WindowSettings settings = new WindowSettings();

            settings.ShowDialog();
        }

        private void btnHelp_Click(object sender, RoutedEventArgs e)
        {
            WindowHelp help = new WindowHelp();

            help.ShowDialog();
        }


        private void NewDownload_Click(object sender, RoutedEventArgs e)
        {
            WindowNewDownload download = new WindowNewDownload();
            download.ShowDialog();
        }

        private void StartTask_Click(object sender, RoutedEventArgs e)
        {
            foreach (TransferTask task in taskList.SelectedTasks)
            {
                System.Diagnostics.Trace.WriteLine(task);
            }
        }

        private void StopTask_Click(object sender, RoutedEventArgs e)
        {

        }

        private void PauseTask_Click(object sender, RoutedEventArgs e)
        {

        }

        private void RemoveTask_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
